"
I am a simple strategy to run the callbacks in a new process every time.
"
Class {
	#name : 'TFCallbackForkRunStrategy',
	#superclass : 'Object',
	#category : 'ThreadedFFI-Callbacks',
	#package : 'ThreadedFFI',
	#tag : 'Callbacks'
}

{ #category : 'executing' }
TFCallbackForkRunStrategy >> executeCallback: aCallbackInvocation on: aTFRunner [

	[ aTFRunner handleExceptionDuring: [ aCallbackInvocation execute ] ]
		forkAt: Processor highIOPriority - 1
]
